package cn.edu.scau.cmi.zhaotingjie.chapter07;

abstract class A implements Computable7_2{
	public int f(int x) {
		int sum = 0;
		for(int i=1;i<=x;i++) {
			sum=sum+i;
		}
		return sum;
	}
}
interface Computable7_2 {
	final int MAX = 100;
	void speak(String s);
	int f(int x);
	float g(float x,float y);
}
